package com.bestvike.stone.spring.rest;

import org.springframework.util.MultiValueMap;

import java.lang.reflect.Type;
import java.util.Map;

/**
 * Created by 许崇雷 on 2017-10-08.
 */
public interface IRestUtils {
    <TResponse> TResponse getForCore(String url, Type responseType, Map<String, ?> uriVariables, MultiValueMap<String, String> headers);

    <TResponse> TResponse deleteForCore(String url, Type responseType, Map<String, ?> uriVariables, MultiValueMap<String, String> headers);

    <TResponse> TResponse postForCore(String url, Object body, Type responseType, MultiValueMap<String, String> headers);

    <TResponse> TResponse putForCore(String url, Object body, Type responseType, MultiValueMap<String, String> headers);
}
